<?php

class Capabilities extends Model {
    var $name = 'Capabilities';
    
    function updateField($name, $value) {
        $db = &$this->get_db();
        $group_id = $this->group_id;
        $db->query("UPDATE `" . $this->table_name() . "` SET `value`='$value' WHERE `group_id`='$group_id' AND `key`='$name' LIMIT 1");
    }
}
?>
